<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>项目推进管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/project/projectprocess/projectProcess/">项目推进列表</a></li>
		<li class="active">
			<a href="${ctx}/project/projectprocess/projectProcess/form?id=${projectProcess.id}">
				项目推进
				<shiro:hasPermission name="project:projectprocess:projectProcess:edit">
					${not empty projectProcess.id?'修改':'添加'}
				</shiro:hasPermission>
				<shiro:lacksPermission name="project:projectprocess:projectProcess:edit">
				查看
				</shiro:lacksPermission>
			</a>
		</li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="projectProcess" action="${ctx}/project/projectprocess/projectProcess/save?projectId=${projectId}" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<%--<sys:message content="${message}"/>		--%>

		<div class="control-group">
			<label class="control-label">子目标：</label>
			<div class="controls">
				<form:input path="subgoal" htmlEscape="false" maxlength="1024" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">子目标牵头单位：</label>
			<div class="controls">
				<form:input path="subgoalLeadUnit" htmlEscape="false" maxlength="64" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">子目标负责人：</label>
			<div class="controls">
				<form:input path="subgoalLeader" htmlEscape="false" maxlength="64" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">配合单位：</label>
			<div class="controls">
				<form:input path="cooperateUnit" htmlEscape="false" maxlength="1024" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">推进情况：</label>
			<div class="controls">
				<form:input path="processStatus" htmlEscape="false" maxlength="1024" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">推进节点：</label>
			<div class="controls">
				<form:input path="processNode" htmlEscape="false" maxlength="1024" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">面临困难：</label>
			<div class="controls">
				<form:input path="difficulty" htmlEscape="false" maxlength="1024" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">解决事项：</label>
			<div class="controls">
				<form:input path="solveItems" htmlEscape="false" maxlength="1024" class="input-xlarge "/>
			</div>
		</div>

		<a class="form-actions">
			<shiro:hasPermission name="project:projectprocess:projectProcess:edit">
			<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
			<a id="nextSubmit" href="${ctx}/project/fundmanagement/fundManagement/form?projectId=${projectProcess.projectId}" class="btn btn-primary">下一步</a>
		</div>
	</form:form>
</body>
</html>